import {request} from "@/utils/request.js"
export function getBannerApi() {
	return request({url: '/homeBanner'})
}
/* 随机推荐 */
export function getRandomListApi() {
	return request({url: '/randomWall'})
}
/* 公告列表 */
export function getNoticeListApi(data) {
	return request({
		url: '/wallNewsList',
		data,
	})
}
/* 专题精选 */
export const getClassifyApi = (data) => request({
	url:'/classify',
	data
})
/* 类别详情 */
export const getClassListApi = (data) => request({
	url:'/wallList',
	data
})
/* 评分 */
export const setScoreAPI = data => request({
	url:'/setupScore',
	data
})
/* 记录下载记录 */
export const updateDownload = data => request({
	url:'/downloadWall',
	data
})
/* 获取用户信息 */
export const getUserInfoApi = () => request({
	url:'/userInfo'
})
/* 获取用户信息-下载评分 */
export const getUserDoScApi = (data) => request({
	url:'/userWallList',
	data
})
/* 获取壁纸资讯公告详情 */
export const getNoticeDetailApi = (data) => request({
	url:'/wallNewsDetail',
	data
})
/* 搜索 */
export const searchDataApi = (data) => request({
	url:'/searchWall',
	data
})